package com.stone.serverless.event;

import cn.hutool.extra.spring.SpringUtil;
import com.stone.serverless.event.service.EventBus;
import com.stone.serverless.sdk.event.ComponentProvider;
import com.stone.serverless.sdk.event.ComponentRunner;

import java.util.Map;

/**
 * @Description: TODO
 * @Author: MECHREVO
 * @Date: 2022/1/24 18:28
 * @Version: 1.0.0
 */
public class EventComponentProvider extends ComponentProvider implements ComponentRunner {
    public static EventComponentProvider INSTANCE;

    @Override
    public void run(Map<String, Object> environment, String commonScan) {

    }

    @Override
    public void componentUninstalled(ClassLoader classLoader) {
        EventBus.unListener(classLoader);
    }

    @Override
    public void componentInstalled(ClassLoader classLoader) {

    }

    @Override
    public void stop() {

    }
}
